package com.tedu.controller;

import com.tedu.pojo.SmbmsProvider;
import com.tedu.pojo.SmbmsUser;
import com.tedu.services.ProviderServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class ProviderController {
    @Autowired
    ProviderServices providerServices;

    //用户管理 全部用户信息
    @RequestMapping("/sys/provider")
    public  String getAllProvider(Model model){
        //处理器方法
        List<SmbmsProvider> allProvider = providerServices.getAllProvider();
        //发送数据到视图
        model.addAttribute("providerList",allProvider);
        return "/pro/providerlist";
    }
}
